<template>
    <view class="wait">
        <view class="img"><image src="https://z3.ax1x.com/2021/04/09/cNfYuQ.png" mode=""></image></view>
        <view class="hint">
            <text>请连接充电枪</text>
           <text class="as">[{{timer1}}s]</text>
        </view>
        <view class="footer-hint">
            <view>连接充电枪将自动开启充电</view>
            <view>若连接后长时间不开启充电,请插拔充电枪重试</view>
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            timer1: 60
        };
    },
    onLoad() {
        this.fn();
    },
    methods: {
        fn() {
            this.timer = setInterval(() => {
                if(this.timer1>1){
                    this.timer1--
                }else{
                    
                }
            }, 1000);
        }
    }
};
</script>

<style lang="scss">
.wait {
    position: relative;
    height: calc(100vh - 100rpx);
    .img {
        display: flex;
        justify-content: center;
        margin-top: 100rpx;
        margin-bottom: 64rpx;
        image {
            width: 534rpx;
            height: 528rpx;
        }
    }
    .hint {
        text-align: center;
        text {
            font-size: 28rpx;
            color: #666666;
        }
        .as{
            color: #20a8fc;
            font-size: 28rpx;
            margin-left: 8rpx;
        }
    }
    .footer-hint {
        width: 100%;
        font-size: 24rpx;
        color: #999999;
        position: absolute;
        bottom: 108rpx;
        text-align: center;
        view:nth-child(1) {
            margin-bottom: 16rpx;
        }
    }
}
</style>
